package com.lin.reggie.service;

import com.lin.reggie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    //添加到购物车
    ShoppingCart addCart(ShoppingCart shoppingCart);

    //查询购物车
    List<ShoppingCart> findCartByUserId(Long userId);

    //清空购物车
    void deleteShopp(Long userId);

    //删除单个商品
    ShoppingCart delete(ShoppingCart shoppingCart);
}
